GET
/
tariffs
/
{id}
/
[BETA] Retrieve Tariff
curl --request GET \
  --url https://sandbox.prezio.eu/api/tariffs/{id}/ \
  --header 'Authorization: <api-key>'
{
  "id": "tar_789",
  "name": "C Customer Tariff",
  "organization": {
    "id": "org_123",
    "name": "Radius Elnet",
    "type": "DSO",
    "website_url": "https://radiuselnet.dk"
  },
  "main_tariff": {
    "id": "mta_456",
    "name": "C Tariff",
    "description": "Standard commercial tariff for medium-sized businesses"
  },
  "assigned_options": [
    "tfo_101"
  ],
  "consumer_types": [
    "BUSINESS",
    "RESIDENTIAL"
  ],
  "has_time_of_use": true,
  "has_tiers": true,
  "has_eligibilities": false,
  "is_active": true,
  "components": [
    {
      "id": "com_1001",
      "name": "Energy Charge",
      "description": "Variable energy consumption charge",
      "currency": "DKK",
      "type": "KWH",
      "unit": "kwh",
      "direction": "IMP",
      "applicable_vat_rate": "standard",
      "has_time_of_use": true,
      "has_tiers": true,
      "is_active": true,
      "input_key": "energy-charge",
      "tou_levels": [
        "tou_146",
        "tou_162",
        "tou_145"
      ]
    },
    {
      "id": "com_1002",
      "name": "Demand Charge",
      "description": "Peak demand charge based on maximum kW",
      "currency": "DKK",
      "type": "DEMAND",
      "unit": "kw_per_month",
      "direction": "IMP",
      "applicable_vat_rate": "standard",
      "has_time_of_use": true,
      "has_tiers": true,
      "is_active": true,
      "input_key": "demand-charge",
      "tou_levels": [
        "tou_146",
        "tou_162",
        "tou_145"
      ]
    },
    {
      "id": "com_1003",
      "name": "Fixed Monthly Fee",
      "description": "Monthly subscription fee",
      "currency": "DKK",
      "type": "FIXED",
      "unit": "unit",
      "direction": "IMP",
      "applicable_vat_rate": "standard",
      "has_time_of_use": false,
      "has_tiers": false,
      "is_active": true,
      "input_key": "fixed-monthly-fee"
    }
  ],
  "tou_levels": [
    {
      "id": "tou_146",
      "name": "Peak",
      "type": "ON_PEAK",
      "periods": [
        {
          "summary": "Mon-Fri: 17:00-21:00",
          "from_day": 1,
          "to_day": 5,
          "from_time": "17:00",
          "to_time": "21:00"
        }
      ]
    },
    {
      "id": "tou_162",
      "name": "Partial peak",
      "type": "PARTIAL_PEAK",
      "periods": [
        {
          "summary": "Mon-Fri: 05:00-17:00",
          "from_day": 1,
          "to_day": 5,
          "from_time": "05:00",
          "to_time": "17:00"
        },
        {
          "summary": "Mon-Fri: 21:00-24:00",
          "from_day": 1,
          "to_day": 5,
          "from_time": "21:00",
          "to_time": "24:00"
        }
      ]
    },
    {
      "id": "tou_145",
      "name": "Offpeak",
      "type": "OFF_PEAK",
      "periods": [
        {
          "summary": "Mon-Fri: 00:00-05:00",
          "from_day": 1,
          "to_day": 5,
          "from_time": "00:00",
          "to_time": "05:00"
        },
        {
          "summary": "Sat-Sun: 00:00-24:00",
          "from_day": 6,
          "to_day": 0,
          "from_time": "00:00",
          "to_time": "24:00"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

A unique integer value identifying this Tariff.

Query Parameters

valid_at
string

Filter components to show only those valid at the specified datetime. Format: 'YYYY-MM-DD HH:MM:SS'. If not provided, shows components valid at current time.

Response

200
application/json

[BETA] Detailed tariff information with enhanced component structure for /calculate/advanced integration

Enhanced serializer for detailed tariff retrieval using common mixins